/**
 * Created by Anfield on 2017/6/19 0019.
 */
function Record(){}

Record.playRecord_vue=function playRecord(row){
    $("#videoPlayDiv").empty();

    var videoStartTime=row.starttime;
    var videoEndTime=row.endtime;
    var recordid=row.recordid;
    var src =row.filepath;

    Operate.addOperationLog( DasConstant.userId ,9,'播放'+recordid+'号录音');

    var timeBar='<div CLASS="drag"><span CLASS="Bfont">开始时间：'+videoStartTime+'</span><span CLASS="Bfont audioEndtime">结束时间：'+videoEndTime+'</span><button class="closeaudio" data-menu="close" >x</button></div>';
    $('#videoPlayDiv').append(timeBar);

    var videoStr = '<audio class="audioPlayBar" controls="controls" src="'+src+'" autoplay="autoplay"></audio>';
    $("#videoPlayDiv").append(videoStr);
    $("#videoPlayDiv").show();
    $("#videoPlayDiv").Tdrag({
        scope:"#right_block",
        handle:".drag"
    });

    // $("#videoPlayDiv").css("top",100);
};


//        获取json数组长度
//       下载内层代码
function downLoadRecord(mrl){
    try{
        window.frames['downloadFrame'].window.location.href=mrl;
    }catch(e){
        alert("下载出错");
    }
}
/**
 * Created by Anfield on 2017/6/19 0019.
 */
function Operate(){}

Operate.addOperationLog=function(operId,operType,operContent){
    var condition={
        operId:operId,
        operType:operType,
        operTime:timeFormat(new Date()),
        operContent:operContent
    };
    /*$.ajax({
        type:'post',
        url:'operation/add',
        contentType:'application/json',
        dataType:'json',
        data:JSON.stringify(condition),
        success:function (){
        },
        error:function(){
        }
    })*/
};

/**
 * Created by Anfield on 2017/7/5 0005.
 */
function AndroidUp(){}

AndroidUp.close=function(obj){
     $('.bigI').remove();
    $(obj).parent().slideToggle();
};

